package 第三个作业;

class 学生类 {
    //变量声明
    public String name,degree;
    public int age;
    //设置和获得方法
    public void setAge(int age) {
        this.age = age;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setDegree(String degree) {
        this.degree = degree;
    }
    public int getAge() {
        return age;
    }
    public String getDegree() {
        return degree;
    }
    public String getName() {
        return name;
    }
}
